package com.fesine.learn.design.principle.demeter;

/**
 * @description: 类描述
 * @author: fesine
 * @createTime:2019/2/16
 * @update:修改内容
 * @author: fesine
 * @updateTime:2019/2/16
 */
public class Boss {

    public void commandCheckNumber(TeamLeader teamLeader){
        //改造前Course由Boss创建不符合迪米特法则
        //List<Course> courseList = new ArrayList<>();
        //for (int i = 0; i < 20; i++) {
        //    courseList.add(new Course());
        //}
        //teamLeader.checkNumberOfCourse(courseList);
        //改造后效果
        teamLeader.checkNumberOfCourse();
    }
}
